//
//  RedioListCell.m
//  Leisure
//
//  Created by 大展 on 16/4/20.
//  Copyright © 2016年 张展. All rights reserved.
//

#import "RedioListCell.h"

@interface RedioListCell ()

@property (strong, nonatomic) IBOutlet UIImageView *coverImg;
@property (strong, nonatomic) IBOutlet UILabel *title;

@property (strong, nonatomic) IBOutlet UILabel *name;
@property (strong, nonatomic) IBOutlet UILabel *desc;
@property (strong, nonatomic) IBOutlet UILabel *count;

@end
@implementation RedioListCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setCellWithModel:(RedioModel *)model {

    self.title.text = model.title;
    self.desc.text = model.desc;
    self.name.text = model.uname;
    self.count.text = [NSString stringWithFormat:@"%d",model.count];
    [self.coverImg sd_setImageWithURL:[NSURL URLWithString:model.coverimg]];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
